home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Student most wanted Languages / Turbo C v3.0 / Tc3setup.exe / INCLUDE / SETJMP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-18  |  721 b   |  42 lines

  1. /*  setjmp.h
  2.  
  3.     Defines typedef and functions for setjmp/longjmp.
  4.  
  5.     Copyright (c) 1987, 1991 by Borland International
  6.     All Rights Reserved.
  7. */
  8.  
  9. #ifndef __SETJMP_H
  10. #define __SETJMP_H
  11.  
  12. #if !defined( __DEFS_H )
  13. #include <_defs.h>
  14. #endif
  15.  
  16. typedef struct __jmp_buf {
  17.     unsigned    j_sp;
  18.     unsigned    j_ss;
  19.     unsigned    j_flag;
  20.     unsigned    j_cs;
  21.     unsigned    j_ip;
  22.     unsigned    j_bp;
  23.     unsigned    j_di;
  24.     unsigned    j_es;
  25.     unsigned    j_si;
  26.     unsigned    j_ds;
  27. }   jmp_buf[1];
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32.  
  33. void    _CType longjmp(jmp_buf __jmpb, int __retval);
  34. int     _CType setjmp(jmp_buf __jmpb);
  35.  
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39.  
  40. #endif
  41.  
  42.